import { request } from '@/utils/axios/axios'
import type { Credential } from '@/api/upload/type'

enum API {
  // 获取资格证书的URL
  GET_CREDENTIALS = '/file/getcredential',
}
// 获取资格证书的请求
export const getCredential = (): Promise<Credential> => {
  return request.post<Credential>(API.GET_CREDENTIALS)
}
